package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.dto.NursingPlanDto;
import com.zzyl.entity.NursingPlan;
import com.zzyl.vo.NursingPlanVo;

import java.util.List;

/**
 * @interfaceName: NursingPlanService
 * @description:
 * @author: ChenXu
 * @date: 2024/5/27 10:23
 * @Version: 1.0
 */
public interface NursingPlanService {
    /**
     * 新增计划
     * @param dto
     * @return
     */
    void save(NursingPlanDto dto);
    /**
     * 查询所有护理计划
     * @return
     */
    List<NursingPlanVo> findAllPlan();
    /**
     * 条件分页查询
     * @param name
     * @param status
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageResponse<NursingPlanVo> findByPage(String name, Integer status, Integer pageNum, Integer pageSize);

    void deleteById(Long id);

    NursingPlanVo findById(Long id);
    /**
     * 修改计划
     *
     * @param id
     * @param dto
     * @return
     */
    void update(Long id, NursingPlanDto dto);
    /**
     * 启用禁用
     * @param id
     * @param status
     * @return
     */
    void updateBySta(Long id, Integer status);
}
